package model.feature;

public class FeatureContainerDefinition {
	private static FeatureContainerDefinition _instance;

	private int			featureId 			=  0;
	private String 		featureType 		= "";
	private int 		numberOfDaysToPlay	= -1;
	private int 		containerID			= -1;
	private int			orientation; // 0 Horizontal, 1 vertical
	private String		unit				= "";
	
	public static FeatureContainerDefinition getInstance() {
		// load inventory player from XML file if the data file exists.
		if (_instance == null) {
			_instance = new FeatureContainerDefinition();
		}
		return _instance;
	}
	
	public FeatureContainerDefinition() {
		//this.reset();
	}

	public int getFeatureId() {
		return featureId;
	}

	public void setFeatureId(int featureId) {
		this.featureId = featureId;
	}

	public String getFeatureType() {
		return featureType;
	}
	
	public void setFeatureType(String featureType) {
		this.featureType = featureType;
	}

	public void reset() {
		System.out.println("Reseting features definition");
		featureType = "";
		
		numberOfDaysToPlay 	= -1;
		orientation 		= -1;
		containerID 		= -1;
	}

	public int getNumberOfDaysToPlay() {
		return numberOfDaysToPlay;
	}

	public void setNumberOfDaysToPlay(int numberOfDaysToPlay) {
		this.numberOfDaysToPlay = numberOfDaysToPlay;
	}

	public int getContainerID() {
		return containerID;
	}

	public void setContainerID(int containerID) {
		this.containerID = containerID;
	}

	
	public int getOrientation() {
		return orientation;
	}

	public void setOrientation(int orientation) {
		this.orientation = orientation;
	}
	
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Override
	public String toString() {
		return "FeatureContainerDefinition [containerID=" + containerID
				+ ", featureId=" + featureId + ", featureType=" + featureType
				+ ", numberOfDaysToPlay=" + numberOfDaysToPlay
				+ ", orientation=" + orientation + "]";
	}

	public static void main(String[] args) {
		
	}
	
}
